Page({
  data: {
    goodsList: []
  },
  onLoad(options) {
    const orderId = options.id;
    wx.request({
      url: 'http://localhost:3000/api/order/' + orderId,
      method: 'GET',
      success: (res) => {
        if (res.data && res.data.code === 0) {
          this.setData({ goodsList: res.data.data });
        }
      }
    });
  }
}); 